package cn.gudian.cms.Stat

class Stat {
  String mode //类型：News,Product等
  int modeID //
  long vnumber              //总共被访问次数
  static constraints = {
    mode(inList: modes)
    modeID(min: 0)
    vnumber()
  }
  static mapping = {
    mode index: 'Mode_Idx,ModeAndModeID_Idx'
    modeID index: 'ModeID_Idx,ModeAndModeID_Idx'
  }

  static List modes = ["Article", "Cases", "Products"]
}
